package com.fw.service.message;

import java.util.List;
import java.util.Locale;

import com.fw.service.bean.EntryBean;

/**
 * Description: use for label, error message.
 * 
 * Key is full class path.
 * 
 * @author A0373
 */
public interface MessageService {

    public String getMessage(String code, Locale locale);

    public String getMessageWithDefaultMessage(String code, String defaultMessage, Locale locale);

    public String getMessageWithParams(String code, Object[] args, Locale locale);

    public String getMessageWithParamsWithDefaultMessage(String code, Object[] args, String defaultMessage, Locale locale);

    public List<EntryBean<String, String>> getMessageAll(Locale locale);
}
